<template>
	<view class="about-us">
		<view class="d-rich-text"><rich-text :nodes="content"></rich-text></view>
	</view>
</template>

<script>
import { mapState, mapMutations } from 'vuex';
export default {
	data() {
		return {
			content:""
		};
	},
	onLoad() {
		// console.log(this.auoutUS)
		this.postData();
	},
	created() {
		// console.log(this.letterList.length)
	},
	computed: {
		// ...mapState({auoutUS:state => state.setUp.auoutUS})
	},
	methods: {
		// 获取数据
		postData() {
			this.$api
				.post(global.apiUrls.configure)
				.then(res => {
					console.log(res);
					this.content = res.data.data.about_as.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:inline-block;margin:10rpx auto;"');
				})
				.catch(err => {
					// this.$popup.showToast('保存失败')
				});
		}
	}
};
</script>

<style lang="scss" scoped>
@import './about-us.scss';
</style>
